package com.zmn.mcc.model.dto;

import lombok.Data;
import lombok.ToString;

import java.io.Serializable;

/**
 * 描述：所在部门的所有上级部门id和上级组织id
 *
 */

@Data
@ToString
public class OrgDeptDto implements Serializable {

    private Integer deptId;

    private Integer orgOneId;

    private Integer orgTwoId;

    private Integer orgThrId;

    private Integer deptOneId;

    private Integer deptTwoId;

    private Integer deptThrId;

    private Integer deptFourId;

    private Integer deptFiveId;

    /**
     * 描述: 北森部门id
     */
    private Integer bsDeptId;

    public void addParentOrgId(Integer parentOrgId) {
        this.orgThrId = this.orgTwoId;
        this.orgTwoId = this.orgOneId;
        this.orgOneId = parentOrgId;
    }

    public void addParentDeptId(Integer parentDeptId) {
        this.deptFiveId = this.deptFourId;
        this.deptFourId = this.deptThrId;
        this.deptThrId = this.deptTwoId;
        this.deptTwoId = this.deptOneId;
        this.deptOneId = parentDeptId;
    }
}
